(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
active(f(X, g(X), Y)) → mark(f(Y, Y, Y))
active(g(b)) → mark(c)
active(b) → mark(c)
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X1, X2, X3)) → f(proper(X1), proper(X2), proper(X3))
proper(g(X)) → g(proper(X))
proper(b) → ok(b)
proper(c) → ok(c)
f(ok(X1), ok(X2), ok(X3)) → ok(f(X1, X2, X3))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
Rewrite Strategy: FULL
(1) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
active(f(X, g(X), Y)) → mark(f(Y, Y, Y))
active(g(b)) → mark(c)
active(b) → mark(c)
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X1, X2, X3)) → f(proper(X1), proper(X2), proper(X3))
proper(g(X)) → g(proper(X))
proper(b) → ok(b)
proper(c) → ok(c)
f(ok(X1), ok(X2), ok(X3)) → ok(f(X1, X2, X3))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
S is empty.
Rewrite Strategy: FULL
(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(4) Obligation:
TRS:
Rules:
active(f(X, g(X), Y)) → mark(f(Y, Y, Y))
active(g(b)) → mark(c)
active(b) → mark(c)
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X1, X2, X3)) → f(proper(X1), proper(X2), proper(X3))
proper(g(X)) → g(proper(X))
proper(b) → ok(b)
proper(c) → ok(c)
f(ok(X1), ok(X2), ok(X3)) → ok(f(X1, X2, X3))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
(5) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
active,
f,
g,
proper,
topThey will be analysed ascendingly in the following order:
f < active
g < active
active < top
f < proper
g < proper
proper < top
(6) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
The following defined symbols remain to be analysed:
f, active, g, proper, top
They will be analysed ascendingly in the following order:
f < active
g < active
active < top
f < proper
g < proper
proper < top
(7) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol f.
(8) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
The following defined symbols remain to be analysed:
g, active, proper, top
They will be analysed ascendingly in the following order:
g < active
active < top
g < proper
proper < top
(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
g(
gen_mark:b:c:ok3_0(
+(
1,
n17_0))) →
*4_0, rt ∈ Ω(n17
0)
Induction Base:
g(gen_mark:b:c:ok3_0(+(1, 0)))
Induction Step:
g(gen_mark:b:c:ok3_0(+(1, +(n17_0, 1)))) →RΩ(1)
mark(g(gen_mark:b:c:ok3_0(+(1, n17_0)))) →IH
mark(*4_0)
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(10) Complex Obligation (BEST)
(11) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Lemmas:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
The following defined symbols remain to be analysed:
active, proper, top
They will be analysed ascendingly in the following order:
active < top
proper < top
(12) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol active.
(13) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Lemmas:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
The following defined symbols remain to be analysed:
proper, top
They will be analysed ascendingly in the following order:
proper < top
(14) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol proper.
(15) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Lemmas:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
The following defined symbols remain to be analysed:
top
(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol top.
(17) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Lemmas:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
No more defined symbols left to analyse.
(18) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
(19) BOUNDS(n^1, INF)
(20) Obligation:
TRS:
Rules:
active(
f(
X,
g(
X),
Y)) →
mark(
f(
Y,
Y,
Y))
active(
g(
b)) →
mark(
c)
active(
b) →
mark(
c)
active(
g(
X)) →
g(
active(
X))
g(
mark(
X)) →
mark(
g(
X))
proper(
f(
X1,
X2,
X3)) →
f(
proper(
X1),
proper(
X2),
proper(
X3))
proper(
g(
X)) →
g(
proper(
X))
proper(
b) →
ok(
b)
proper(
c) →
ok(
c)
f(
ok(
X1),
ok(
X2),
ok(
X3)) →
ok(
f(
X1,
X2,
X3))
g(
ok(
X)) →
ok(
g(
X))
top(
mark(
X)) →
top(
proper(
X))
top(
ok(
X)) →
top(
active(
X))
Types:
active :: mark:b:c:ok → mark:b:c:ok
f :: mark:b:c:ok → mark:b:c:ok → mark:b:c:ok → mark:b:c:ok
g :: mark:b:c:ok → mark:b:c:ok
mark :: mark:b:c:ok → mark:b:c:ok
b :: mark:b:c:ok
c :: mark:b:c:ok
proper :: mark:b:c:ok → mark:b:c:ok
ok :: mark:b:c:ok → mark:b:c:ok
top :: mark:b:c:ok → top
hole_mark:b:c:ok1_0 :: mark:b:c:ok
hole_top2_0 :: top
gen_mark:b:c:ok3_0 :: Nat → mark:b:c:ok
Lemmas:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
Generator Equations:
gen_mark:b:c:ok3_0(0) ⇔ b
gen_mark:b:c:ok3_0(+(x, 1)) ⇔ mark(gen_mark:b:c:ok3_0(x))
No more defined symbols left to analyse.
(21) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
g(gen_mark:b:c:ok3_0(+(1, n17_0))) → *4_0, rt ∈ Ω(n170)
(22) BOUNDS(n^1, INF)